package com.modai;

import com.modai.proxy.RemoteApiProxy;
import com.modai.remote.api.UserAPI;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

import java.util.Properties;
import java.util.PropertyResourceBundle;

/**
 * @author ：modai
 * @date ：Created in 2021-6-5 23:38
 * @description：客户端主程序
 *
 */
@SpringBootApplication
public class ClientMain {
    public static void main(String[] args) {
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

    @Bean
    public UserAPI userAPI(){
        return RemoteApiProxy.getApi(UserAPI.class);
    }
}
